import axios from 'axios'
const instance = axios.create({
  baseURL: 'http://49.232.213.189:39002/',
  timeout: 1000,
  // headers: {'X-Custom-Header': 'foobar'},
  withCredentials: true
});
instance.defaults.withCredentials=true
const getData = (api, data = {})=> {
  return  instance.get(api, {
    params: data,
    timeout: 10000,
  })
}
export default getData